package com.emr.web.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.emr.service.LoginService;
import com.emr.system.action.AbstractBaseAction;
import com.emr.vo.User;

@SuppressWarnings("serial")
@Controller @Scope("prototype")
public class LoginAction extends AbstractBaseAction {
	private User user;

	@Resource
	private LoginService loginServiceImpl;

	public String list(){
		List<User> list = this.loginServiceImpl.getList(user, 1, 20);
		super.outputAjaxJsonData(list);
		System.out.println("返回结果");
		return null;
	}
	
	public String login(){
		List<User> list = this.loginServiceImpl.getList(user, 1, 20);
		super.outputAjaxJsonData(list);
		System.out.println("返回结果");
		return null;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
